
import 'dart:convert';

MoveClassStudentsDto moveClassStudentsDtoFromJson(String str) =>
    MoveClassStudentsDto.fromJson(json.decode(str));

String moveClassStudentsDtoToJson(MoveClassStudentsDto data) =>
    json.encode(data.toJson());

class MoveClassStudentsDto {
  MoveClassStudentsDto({
    this.fromClassId,
    this.toClassId,
    this.userNameList,
  });

  String? fromClassId;
  String? toClassId;
  List<String>? userNameList;

  factory MoveClassStudentsDto.fromJson(Map<String, dynamic> json) =>
      MoveClassStudentsDto(
        fromClassId: json["fromClassId"],
        toClassId: json["toClassId"],
        userNameList: json["userNameList"] != null
            ? List<String>.from(json["userNameList"].map((x) => x))
            : null,
      );

  Map<String, dynamic> toJson() => {
        "fromClassId": fromClassId,
        "toClassId": toClassId,
        "userNameList": userNameList != null
            ? List<dynamic>.from(userNameList!.map((x) => x))
            : null,
      };
}
